{% extends '::base.html.twig' %} 
{% block title %}Periodos :: Mas Informaci&oacute;n{% endblock %}

{% block module_name %}Periodos{% endblock %}

{% block body %}
<h2>Mas Informaci&oacute;n</h2>
<div class="widget_inside">
    <div class="form">                <!--<div class="clearfix">
                    <label>Id</label>
                    <div class="input">
                        <input type="text" value="{{ entity.id }}" readonly />
                    </div>
                </div>-->                <div class="clearfix">
            <label>Fecha de Inicio</label>
            <div class="input">
                <input type="text" value="{{ entity.fechaIncio|date('d/m/Y') }}" readonly />
            </div>
        </div>                <div class="clearfix">
            <label>Fecha de Fin</label>
            <div class="input">
                <input type="text" value="{{ entity.fechaFin|date('d/m/Y') }}" readonly />
            </div>
        </div>                <div class="clearfix">
            <label>Comentarios</label>
            <div class="input">
                <input type="text" value="{{ entity.comentarios }}" readonly />
            </div>
        </div>            
    </div>
</div>
<div class="widget_inside">
    <div class="form">
        <div class="widget_inside">
            <h4>Conceptos</h4>
            <table class="regular datatables">
                <thead>
                    <tr>
                        <th>Nombre</th>
                        <th>Abreviatura</th>
                    </tr>
                </thead>
                <tbody>
                    {% for concepto in conceptos %}
                        <tr>
                            <td>{{ concepto.idConcepto.nombre }}</td>
                            <td>{{ concepto.idConcepto.abreviatura }}</td>
                        </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
        <div class="clearfix"></div>
    </div>
</div>
<div class="widget_inside">
    <div class="form">
        <div class="clearfix grey-highlight">
            <div class="input no-label">
                <a href="{{ path('periodos_edit', { 'id': entity.id }) }}" class="button">Editar</a>
                <form action="{{ path('periodos_delete', { 'id': entity.id }) }}" method="post" style="display: inline-block;">
                    {{ form_widget(delete_form) }}
                    <button type="submit" class="button black">Eliminar</button>
                </form>
                <a href="{{ path('periodos') }}" class="button">Regresar a la Lista</a>
            </div>
        </div>  
    </div>
</div>
{% endblock %}